{layout name="common/layout" /}
<style>
	body {
		background-color: rgb(244, 246, 248);
	}

	a:active,
	a:visited,
	a:hover,
	a:link,
	a {
		text-decoration: none;
	}

	em {
		font-style: normal;
	}

	ul,
	ol,
	li,
	dl,
	dt,
	p,
	dd {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#index-focus .item {
		min-height: 500px;
		background-color: rgba(54, 63, 72, 0.34);
		background-size: cover;
		background-attachment: scroll;
		background-position: center;
	}

	#index-focus .item .carousel-text {
		width: 500px;
		margin-top: 114px;
	}

	#index-focus .item .carousel-text h2 {
		margin-top: 30px;
		margin-bottom: 25px;
		font-size: 50px;
		line-height: 56px;
		font-weight: bold;
		color: #fff;
	}

	#index-focus .item .carousel-text p {
		margin-bottom: 30px;
		font-size: 18px;
		color: #fff;
		line-height: 28px;
	}

	@media (max-width: 767px) {
		#index-focus .item .carousel-text {
			width: 100%;
		}
	}

	/* 主体内容 */
	/* 商品分类 */
	.content .banner {
		width: 100%;
		height: 450px;
		background-color: rgb(196, 196, 196);
	}

	.content-wrap {
		display: flex;
		margin: 27px auto 0;
		padding: 0 15px;
		width: 1170px;
	}

	.product-category {
		padding: 21px 10px 24px;
		width: 252px;
		background-color: #fff;
	}

	.product-category .category {
		margin-bottom: 15px;
	}

	.product-category .category .title {
		padding: 5px 0 6px 10px;
		border: solid #ddd;
		border-width: 1px 1px 0 1px;
		color: rgb(51, 51, 51);
		background-color: rgb(247, 247, 247);
		font-family: 思源黑体;
		font-size: 16px;
		font-weight: 500;
		line-height: 23px;
		letter-spacing: 0px;
		text-align: left;
	}

	.product-category .category .title h4 {
		margin: 0;
	}

	.product-category .category .content {
		border: solid 1px #e7e7e7;
		background-color: rgb(249, 249, 249);
	}

	.category .content p {
		display: flex;
		margin: 0;
		height: 28px;
	}

	.category .content p span {
		text-align: center;
		display: inline-block;
		width: 24%;
		height: 20px;
		padding: 4px 0;
	}

	.category .content p a {
		padding: 2px;
		color: rgb(102, 102, 102);
		font-family: 思源黑体;
		font-size: 14px;
		font-weight: 400;
		line-height: 20px;
		letter-spacing: 0px;
		text-align: left;
	}

	.category .content p a:hover {
		color: #fff;
		background-color: #656565;
		transition: all 0.5s;
		border-radius: 3px;
	}

	.category .content .all-product {
		margin-top: 10px;
		padding-left: 10px;
		padding-bottom: 21px;
		width: 100%;
	}

	.category .content .all-product .icon-none {
		display: inline-block;
		margin-right: 1px;
		width: 15px;
		height: 15px;
		background-color: rgb(0, 123, 255);
		color: #fff;
		border-radius: 2px;
		text-align: center;
		line-height: 14px;
	}

	.category .content .all-product a {
		color: rgb(51, 51, 51);
		font-family: 思源黑体;
		font-size: 14px;
		font-weight: 700;
		line-height: 20px;
		letter-spacing: 0px;
		text-align: left;
	}

	/* 商品排行 */
	.product-category .product-rank .title {
		padding: 5px 0 6px 10px;
		border: solid #ddd;
		border-width: 1px 1px 0 1px;
		color: rgb(51, 51, 51);
		background-color: rgb(247, 247, 247);
		font-family: 思源黑体;
		font-size: 16px;
		font-weight: 500;
		line-height: 23px;
		letter-spacing: 0px;
		text-align: left;
	}

	.product-category .product-rank .title h4 {
		margin: 0;
	}

	.product-category .product-rank .content {
		border: solid 1px #e7e7e7;
		background-color: #fff;
	}

	.product-rank .content .top-tab {
		position: relative;
		display: flex;
		height: 28px;
		padding: 15px 0 0 4px;
	}

	.product-rank .content .top-tab .bottom-border {
		position: absolute;
		top: 38.6px;
		left: 0;
		width: 100%;
		border-bottom: solid 1px #e7e7e7;
	}

	.product-rank .content .top-tab li {
		margin-right: 5px;
		z-index: 2;
	}

	.product-rank .content .top-tab li a {
		color: #777;
		line-height: 20px;
		text-decoration: none;
		background-color: #f7f7f7;
		text-align: center;
		width: 86px;
		height: 20px;
		padding: 6px 9px 5px;
		border: solid #d8d8d8;
		border-width: 1px 1px 0 1px;
		border-radius: 4px 4px 0 0;
		text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.75);
	}

	.product-rank .content .top-tab li.current a {
		color: #000;
		background-color: #fff;
		padding: 6px 9px 5px;
		box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05);
		cursor: pointer;
		border-bottom: solid 1px #fff;
	}

	.product-rank .content .products li {
		display: block;
		width: 233px;
		padding: 8px 12px 15px 4px;
		clear: both;
		border-bottom: dashed 1px rgb(208, 208, 208);
	}

	.product-rank .content .products dl {
		line-height: 16px;
		width: 233px;
		height: 74px;
		position: relative;
		z-index: 1;
	}

	.product-rank .content .products dt,
	.product-rank .content .products dd.price,
	.product-rank .content .products dd.selled {
		display: block;
		float: left;
		width: 120px;
		height: 16px;
		margin-top: 9px;
		margin-left: 89px;
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
	}

	.product-rank .content .products dt a {
		color: rgb(51, 51, 51);
		font-family: 思源黑体;
		font-size: 14px;
		font-weight: 400;
		letter-spacing: 0px;
		text-align: left;
	}

	.product-rank .content .products dd {
		position: relative;
	}

	.product-rank .content .products dd.products-img {
		background-color: #fff;
		display: block;
		width: 66px;
		height: 66px;
		position: absolute;
		z-index: 999;
		top: 10px;
		left: 10px;
	}

	.product-rank .content .products dd.products-img a+p {
		display: none;
	}

	.product-rank .content .products dd.products-img a:hover+p {
		display: block;
	}

	.product-rank .content .products dd p {
		top: -15px;
		left: -118px;
		position: absolute;
		width: 100px;
	}

	.product-rank .content .products dd.price {
		color: rgb(241, 29, 39);
		font-family: 思源黑体;
		font-size: 14px;
		font-weight: 400;
		letter-spacing: 0px;
		text-align: left;
	}

	.product-rank .content .products dd.selled {
		color: rgb(102, 102, 102);
		font-family: 思源黑体;
		font-size: 12px;
		font-weight: 400;
		letter-spacing: 0px;
		text-align: left;
	}

	.product-rank .content .products .btn {
		width: 100%;
		box-shadow: none;
	}

	.product-rank .content .products .btn button {
		margin: 13px auto;
		width: 160px;
		height: 35px;
		border-radius: 4px;
		line-height: 35px;
		color: #fff;
		background: rgb(0, 123, 255);
		border: 0;
		transition: all 0.3s;
	}

	.product-rank .content .products .btn button:active {
		transform: scale(0.8);
	}

	.product-rank .content .products .btn button:hover {
		opacity: 0.7;
	}

	/* 推荐商品 */
	.recommended-goods {
		flex: 1;
		margin-left: 16px;
	}

	.recommended-goods .nav {
		margin-bottom: 21px;
		width: 100%;
	}

	.recommended-goods .nav div {
		float: left;
		color: rgb(0, 0, 0);
		font-family: 思源黑体;
		font-size: 18px;
		font-weight: 400;
		line-height: 26px;
		letter-spacing: 0px;
		text-align: left;
	}

	.recommended-goods .nav a {
		float: right;
		color: rgb(153, 153, 153);
		font-family: 思源黑体;
		font-size: 14px;
		font-weight: 400;
		line-height: 20px;
		letter-spacing: 0px;
		text-align: left;
	}

	.recommended-goods .goods {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
	}

	.recommended-goods .good {
		display: flex;
		flex-direction: column;
		margin-right: 4px;
		margin-bottom: 6px;
		padding: 11px 17.5px 0;
		width: 215px;
		height: 285px;
		background-color: #fff;
		box-sizing: border-box;
	}

	.recommended-goods .good:nth-child(4n + 4) {
		margin-right: 0;
	}

	.recommended-goods .good .description {
		margin-top: 8px;
		color: rgb(153, 153, 153);
		font-family: 思源黑体;
	}

	.recommended-goods .good .price {
		margin-top: 10px;
		color: red;
	}

	.recommended-goods a .img {
		overflow: hidden;
	}

	.recommended-goods a img {
		transition: transform 0.1s ease-in;
	}

	.recommended-goods a img:hover {
		transform: scale(1.1);
	}
</style>
<link rel="stylesheet" href="__ADDON__/css/animate.css" />
<div class="swiper-container index-focus">
	<!-- S 焦点图 -->
	<div id="index-focus" class="carousel slide carousel-focus" data-ride="carousel">
		<ol class="carousel-indicators">
			{shop:blocklist id="block" name="indexfocus" row="5"}
			<li data-target="#index-focus" data-slide-to="{:$i-1}" class="{if $i==1}active{/if}"></li>
			{/shop:blocklist}
		</ol>
		<div class="carousel-inner" role="listbox">
			{shop:blocklist id="block" name="indexfocus" row="5"}
			<div class="item {if $i==1}active{/if}"
				style="background-image:linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.63)), url('{$block.image}')">
				<a href="{$block.url}">
					<div class="container">
						<div class="carousel-text pull-right">
							{$block.content}
						</div>
					</div>
				</a>
			</div>
			{/shop:blocklist}
		</div>
		<a class="left carousel-control" href="#index-focus" role="button" data-slide="prev">
			<span class="icon-prev fa fa-chevron-left" aria-hidden="true"></span>
			<span class="sr-only">Previous</span>
		</a>
		<a class="right carousel-control" href="#index-focus" role="button" data-slide="next">
			<span class="icon-next fa fa-chevron-right" aria-hidden="true"></span>
			<span class="sr-only">Next</span>
		</a>

	</div>
	<!-- E 焦点图 -->
</div>
<div class="content">
	<div class="content-wrap">
		<div class="product-category">
			<div class="category">
				<div class="title">
					<h4>商品分类</h4>
				</div>
				<div class="content">
					<p>
						<span><a href="/shop/store/products?store_id={$store.id}&type=re_goods">按新品</a></span>
						<span><a href="/shop/store/products?store_id={$store.id}&type=re_price">按价格</a></span>
						<span><a href="/shop/store/products?store_id={$store.id}&type=re_scale">按销量</a></span>
						<span><a href="/shop/store/products?store_id={$store.id}&type=re_hot">按人气</a></span>
					</p>
					<div class="all-product">
						<span class="icon-none"><em>-</em></span>
						<a href="#">全部商品</a>
					</div>
				</div>
			</div>

			<!-- 商品排行 -->
			<div class="product-rank">
				<div class="title">
					<h4>商品排行</h4>
				</div>
				<div class="content">
					<ul class="top-tab">
						<div class="bottom-border"></div>
						<li class="current">
							<a>热销商品排行</a>
						</li>
						<li class="">
							<a>热门收藏排行</a>
						</li>
					</ul>
					<div class="products">
						<ol>
							{foreach $hotGoodsList as $goods}
							<li>
								<dl>
									<dt><a href="{$goods.url}">{:mb_substr($goods.title,8)}</a></dt>
									<dd class="products-img">
										<a href="#">
											<span class="thumb size66"><img src="{$goods.image|cdnurl}" width="66"
													height="66" /></span>
										</a>
										<p>
											<span class="thumb size100"><img src="{$goods.image|cdnurl}" title="草莓"
													width="100" height="100" /></span>
										</p>
									</dd>
									<dd class="price">￥639.00</dd>
									<dd class="selled">收藏人气：<em>8</em></dd>
								</dl>
							</li>
							{/foreach}
						</ol>

						<!-- 按钮 -->
						<div class="btn">
							<button>查看本店其他商品</button>
						</div>
					</div>
					<div class="products" style="display: none">
						<ol>
							{foreach $recommendGoodsList as $goods}
							<li>
								<dl>
									<dt><a href="{$goods.url}">{:mb_substr($goods.title,8)}</a></dt>
									<dd class="products-img">
										<a href="{$goods.url}"><span class="thumb size66"><img
													src="{$goods.image|cdnurl}" width="66" height="66" /></span>
										</a>
										<p>
											<span class="thumb size100"><img src="{$goods.image|cdnurl}" title="草莓"
													width="100" height="100" /></span>
										</p>
									</dd>
									<dd class="price">￥639.00</dd>
									<dd class="selled">收藏人气：<em>8</em></dd>
								</dl>
							</li>
							{/foreach}
						</ol>

						<!-- 按钮 -->
						<div class="btn">
							<button>查看本店其他商品</button>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- 推荐商品 -->
		<div class="recommended-goods">
			<div class="nav">
				<div>推荐商品</div>
				<a href="/shop/store/products?store_id={$store.id}">更多</a>
			</div>
			<div class="goods">
				{foreach $goodsList as $goods}
				<a class="good" href="{$goods.url}">
					<div class="img">
						<img src="{$goods.image|cdnurl}" alt="" width="180px" height="180px" />
					</div>
					<div class="description">{$goods.title}</div>
					<div class="price">￥<span>{$goods.price}</span></div>
				</a>
				{/foreach}
			</div>
		</div>
	</div>
</div>
<script src="/assets/js/shopProduct.js" />